<template>
  <div class="home">
    <div class="fu">
      <div :class="[{'xxx': item.flag}, `${item.name}`, 'box']" v-for="(item,index) in list" :key="index">
        <div  v-for="(citem,index) in list.children" :class="{'xxx': citem.flag && item.flag}"  :key="index" >

        </div>
      </div>
      <div class="zi2"></div>
      <div class="zi3"></div>
    </div>
  </div>
</template>

<script>
// @ is an alias to /src


export default {
  name: 'Home',
  components: {

  },
  data() {
    return {
      list: [
        {
          name: 'fu',
          flag: false,
          children: {
            children1:[
              {
                name: 'chi1',
                fflag: false,
                flag: null,
                xxxx: 'dad'
              }
            ],
            children2: [
              {
                name: 'chi1',
                fflag: false,
                flag: null,
              }
            ]
          }
        },
        {
          name: 'fu',
          flag: false,
          children: {
            children1:[
              {
                name: 'chi1',
                fflag: false,
                flag: null,
              }
            ],
            children2: [
              {
                name: 'chi1',
                fflag: false,
                flag: null,
              }
            ]
          }
        }
      ]
      list2: [
        {
          name: 'fu',
          flag: false,
          children: {
            children1:[
              {
                name: 'chi1',
                fflag: false,
                flag: null,
                xxxx: 'dad'
              }
            ],
            children2: [
              {
                name: 'chi1',
                fflag: false,
                flag: null,
              }
            ]
          }
        },
        {
          name: 'fu',
          flag: false,
          children: {
            children1:[
              {
                name: 'chi1',
                fflag: false,
                flag: null,
              }
            ],
            children2: [
              {
                name: 'chi1',
                fflag: false,
                flag: null,
              }
            ]
          }
        }
      ]
    }
  },
  methods: {
    demo(ky,k2) {
      this.list[ky].flag = ''
    }
  }
}
</script>

<style scoped lang="less">
.hello {
  p {
    color: @primaryTextColor;
    font-size: 20px;
  }
}
</style>
